IWCGJQDialog2.JQDialogOptions.Title:= 'Login Form';
IWCGJQDialog2.JQDialogOptions.Modal:= True;
IWCGJQDialog2.Width:= 250;
IWCGJQDialog2.Height:= 180;
iButtom:= IWCGJQDialog2.JQDialogOptions.Buttons.Add;
iButtom.Text:= 'Login';
iButtom.OnClick.OnEvent:= OnClickRunActionDialog2Event;
iButtom:= IWCGJQDialog2.JQDialogOptions.Buttons.Add;
iButtom.Text:= 'Cancel';
iButtom.OnClick.OnEvent:= OnClickCloseDialog2Event;
  
  
procedure TIWDialogFrame.OnClickCloseDialog2Event(Sender: TObject; AURLParams: TStringList);
begin
  IWCGJQDialog2.Visible:= False;
end;

procedure TIWDialogFrame.OnClickRunActionDialog2Event(Sender: TObject; AURLParams: TStringList);
begin
  WebApplication.ShowMessage('Run your action!');
  IWCGJQDialog2.Visible:= False;
end;